<?php 
	include ('lib/twitese.php');
	delCookie('oauth_token');
	delCookie('oauth_token_secret');
	delCookie('user_id');
	delCookie('twitese_name');
	delCookie('twitese_pw');
	delCookie('friends_count');
	delCookie('statuses_count');
	delCookie('followers_count');
	delCookie('imgurl');
	delCookie('name');
	delCookie('listed_count');
	delCookie('recover');
	delCookie('homeInterval');
	delCookie('updatesInterval');
	session_destroy();
?>

<?php 
	ob_start();
	if(!isset($_SESSION)){
		session_start();
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="rabr, open source, php, twitter, oauth, disinfeqt" />
<meta name="description" content="Revolutionary Interface for Twitter" />
<title>AgilePHP - Sign In</title>
<style type="text/css">
*{list-style:none outside none;margin:0;padding:0;}
body{background:none repeat scroll 0 0 #F6F7F8;font:10px helvetica,arial,sans-serif;text-align:center;margin:0;padding:0;}
a:active,a:focus{outline:none;}
a{color:#BFBFBF;outline:medium none;text-decoration:none;}
.form-container #container{background:none repeat scroll 0 0 transparent;margin-top:70px;text-align:left;width:400px;border-width:0;}
.form-container #header{position:absolute;text-align:center;z-index:-1;}
.form-container #header h1{margin-left:-50px;margin-top:-30px;}
.form-container .form{box-shadow:0 0 20px #666666;-webkit-box-shadow:0 0 20px #666666;-moz-box-shadow:0 0 20px #666666;background-color:#F1F8FC;margin-top:66px;opacity:0.8;}
.form-container #footer{text-align:center;}
#container{background:none repeat scroll 0 0 #FFF;border:1px solid #D6D8D9;text-align:left;width:920px;margin:0 auto;padding:20px;}
#header h1{float:none;}
#footer{color:#BFBFBF;font-size:13px;text-align:center;padding:10px;}
.button:hover{background-position:center center;}
.button:active{background-position:center bottom;}
.rounded_5px{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}
.clear{display:block;}
input[type=text],input[type=password]{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;font-family:helvetica;letter-spacing:1px;}
.form{padding:0 2px;}
.form > fieldset{border-width:0;padding:20px 10px 15px;}
.form fieldset fieldset{border-width:0;padding:13px 0 0;}
.form .textfield{margin:0 0 1em;padding:0;}
.form .password{margin:0 0 1em;}
.form .checkbox{color:#666;font-size:1.15em;margin:0 0 1em 125px;}
.form .checkbox input{float:left;margin:0 .5em 0 0;}
.form .form-footer{background:none repeat scroll 0 0 #E0F0FB;clear:both;font-size:12px;height:25px;line-height:25px;margin:10px 0 0;padding:10px;}
.form .form-footer span{float:right;}
.form .form-footer .delete:hover{color:#B42B2B;text-decoration:underline;}
.form-footer .button{background:none repeat scroll 0 0 #FFFFFF;border:1px solid #EEE;color:#666666;cursor:pointer;display:inline-block;font-weight:700;margin-left:3px;text-align:center;text-shadow:0 1px 0 #FFF;font-family:helvetica;outline:0;zoom:1;font-size:13px;height:21px;line-height:20px;vertical-align:middle;-moz-border-radius:12px;-webkit-border-radius:12px;border-radius:12px;padding:1px 20px 2px;}
.form-footer .button:hover{background-color:#DDD;}
.form-footer .button:active{background:none repeat scroll 0 0 #999!important;color:#CCC!important;outline:medium none;text-shadow:0 -1px 0 #404348;border-color:#61676F!important;}
.form-footer .button.cancel:hover{background-color:#EDEDED;}
.form-footer input.button{outline:none!important;font-size:13px;height:24px;padding-top:0;vertical-align:middle;}
.form-footer .button::-moz-focus-inner{border-color:transparent!important;}
a:hover,.form-footer{color:#999;}
.form .textfield label,.form .searchfield label,.form .password label{color:#666;display:block;float:left;font-size:1.15em;text-align:right;width:110px;margin:.8em 0 0;}
.form .textfield input,.form .password input{background:url(img/bg_input.png) repeat-x scroll 0 0 #FFF;border:1px solid #99A8AE;display:block;font-size:14px;width:190px;margin:0 0 0 120px;padding:.5em;}
#oauth {margin-top:-2px; border:none; margin-right: 10px; line-height: 22px}
#home_trends {position: relative; overflow: hidden; background-color: rgb(102, 102, 102); margin-top: 5px; -moz-border-radius: 5px 5px 5px 5px; padding: 5px 10px;}
#home_trends h2 {font-size: 14px; text-align: center; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; color: rgb(153, 153, 153); border-bottom: 1px dotted; line-height: 24px;}
#home_trends li {
color:#EEEEEE;
cursor:pointer;
float:left;
font-size:12px;
padding-right:15px;
}
#home_trends ul li a {
color:#EEEEEE;
}
#marquee  {
height:20px;
line-height:20px;
overflow:hidden;
width:356px;
}
</style>
<script type="text/javascript" src="js/jquery.js?ver=1.4.2"></script>
<script type="text/javascript" src="js/jquery.plugins.js?ver=2010033101"></script>
<script type="text/javascript" src="js/public.js?ver=2010032904"></script>
</head>
<body class="form-container">
<div class="clear rounded_5px" id="container">
 <div id="header">
<h1><a href="/"><img border="0" alt="Rabr" src="img/big_logo.png"></a></h1>
</div>
 <!--[if IE]>
<style type="text/css">
.form-container .form {display:none}
</style>
<div style="display: block; color: rgb(255, 0, 0); margin-top: 150px; margin-bottom: 10px; text-align: center;">
<h1 style="font-size: 20px;">Sorry, but we're NOT IE-Friendly!</h1>
<p style="font-size: 12px;">For a better experience using this site, please use web browsers with WebKit or Gecko core, like Firefox Chrome and Safari.</p>
</div>
  <![endif]-->
<form action="login_action.php" class="form rounded_5px" id="form_login" method="post">
<fieldset class="clear">
<ol>
<li>
<fieldset>
<ul>
<li class="textfield"><label for="username">Username</label><input type="text" id="agent_session_email_address" name="username" size="30" tabindex="1">

</li>
<li class="password"><label for="password">Password</label><input type="password" id="agent_session_password" name="password" size="30" tabindex="2"></li>
<li class="checkbox"><input type="hidden" name="remember" value="0"><input type="checkbox" checked="checked" id="agent_session_remember_me" name="remember" value="1">Remember Me</li>
</ul>
</fieldset>
</li>
</ol>
<div class="form-footer rounded_5px">
<span><input type="submit" class="button sign-in" id="agent_session_submit" name="commit" tabindex="3" value="Sign In"></span>
<a class="button" id="oauth" title="Login via OAuth" onclick="oauth()">OAuth</a>
<!--
Need an account? <a style="cursor:pointer" onclick="register()">Sign Up!</a>
-->
</div>
</fieldset>
</form>
<div style="background: none repeat scroll 0% 0% transparent;" id="footer">
<p>&copy; 2010 disinfeqt &middot; <a href="http://code.google.com/p/rabr/" target="_blank" title="Rabr Open Source">Open Source</a> &middot; Run by <a href="http://twitter.com/<?php echo $site_owner ?>" title="<?php echo $site_owner ?>" target="_blank"><?php echo $site_owner ?></a></p>
</div>
</div>
</body>
</html>
<?php ob_end_flush(); ?>